<!--
*Author：COCO
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/production/production_lackstocklist/Production_LackStockList.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/production/production_lackstocklist/Production_LackStockList.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'LackList_Id',
                footer: "Foots",
                cnName: '缺料明细',
                name: 'production_lackstocklist/Production_LackStockList',
                url: "/Production_LackStockList/",
                sortName: "CreateDate"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'LackList_Id',title:'LackList_Id',type:'string',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'Lack_Id',title:'Lack_Id',type:'string',width:110,hidden:true,require:true,align:'left'},
                       {field:'MoCode',title:'订单号',type:'string',width:180,require:true,align:'left',sort:true},
                       {field:'WoCode',title:'工单号',type:'string',width:180,align:'left'},
                       {field:'InvCode',title:'物料编码',type:'string',width:180,require:true,align:'left'},
                       {field:'InvName',title:'物料名称',type:'string',width:180,align:'left'},
                       {field:'InvStandard',title:'物料规格',type:'string',width:180,align:'left'},
                       {field:'OrgQty',title:'原需求数量',type:'int',width:110,align:'left'},
                       {field:'Qty',title:'实际需求数量',type:'int',width:110,require:true,align:'left'},
                       {field:'CreateDate',title:'CreateDate',type:'datetime',width:110,hidden:true,align:'left',sort:true},
                       {field:'CreateID',title:'CreateID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'Creator',type:'string',width:130,hidden:true,align:'left'},
                       {field:'Modifier',title:'Modifier',type:'string',width:130,hidden:true,align:'left'},
                       {field:'ModifyDate',title:'ModifyDate',type:'datetime',width:110,hidden:true,align:'left',sort:true},
                       {field:'ModifyID',title:'ModifyID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'VerifyId',title:'VerifyId',type:'string',width:180,hidden:true,align:'left'},
                       {field:'VerifyDate',title:'审核时间',type:'datetime',width:110,align:'left',sort:true},
                       {field:'Verifier',title:'审核人',type:'string',width:110,align:'left'},
                       {field:'Status',title:'状态',type:'int',width:80,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
